<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" min="0" data-source="user/user/index" data-field="mobile" data-format-item="{mobile} - {nickname}" data-params='{"custom[group_id]":"2"}' class="form-control selectpage" name="row[user_id]" type="text" value="">
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Main_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-main_id" data-rule="required" min="0" data-source="mental/test_main/index" data-field="title" class="form-control selectpage" name="row[main_id]" type="text" value="">
        </div>
    </div> -->
 
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Main_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-main_ids" data-rule="required" min="0" data-source="mental/test_main/index" data-field="title" data-multiple="true" class="form-control selectpage" name="row[main_ids]" type="text" value="">
        </div>
    </div> -->
    
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ratio')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ratio" class="form-control" name="row[ratio]" max="0.95" min="0.1" type="number" value="0.1">
            
            <span style="color:red;">设置说明:0代表分额度是0%,1代表分配额度是100%.</span>
        </div>
    </div>
    
    
    
    
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Channel_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <!-- <select  id="c-channel_type" data-rule="required" min="0" class="form-control selectpicker" multiple="multiple" name="row[channel_type]"> -->
            <select  id="c-channel_type" class="form-control selectpicker" multiple="" name="row[channel_type][]">
                {foreach name="channelTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="normal"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
